package com.wonders.frame.chron.dao.catalog;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.wonders.frame.chron.model.bo.Card;
import com.wonders.frame.chron.model.bo.Catalog;
import com.wonders.frame.core.dao.GenericRepository;

public interface CatalogDao extends GenericRepository<Catalog, Integer>{
	@Query("select a from Catalog a where a.removed = 0 and a.id =?")
	public List<Card> findByCardNo(Integer id);
	
	public List<Integer> findSpecificTypeChildren(String pId, String pType, List<String> nTypes);
	
	public String findByCardsOrSummarys(List<Integer> pId, String pType, String nTypes);
}
